#ifndef __VOICE_H__
#define __VOICE_H__

#include "usart.h"
#include <stdbool.h>

#define VOICE_UART huart3

#define VOICE_Platform1_OK (13)
#define VOICE_Platform2 (2)
#define VOICE_Platform3 (3)
#define VOICE_Platform4 (4)
#define VOICE_Platform5 (5)
#define VOICE_Platform6 (6)
#define VOICE_Platform7 (7)
#define VOICE_Platform8 (8)
#define VOICE_COLOR_RED (10)
#define VOICE_COLOR_GREEN (11)
#define VOICE_COLOR_YELLOW (12)
#define VOICE_GET_CLUE (9)//成功获取线索
#define VOICE_FIND_TREASURE (0)//发现宝物
#define VOICE_SCEBIC_SPOT (1)//到达直立景点

// #define ZH
#ifdef ZH
#define VOICE_NUMBER_0 (0)
#define VOICE_NUMBER_1 (1)
#define VOICE_NUMBER_2 (2)
#define VOICE_NUMBER_3 (3)
#define VOICE_NUMBER_4 (4)
#define VOICE_NUMBER_5 (5)
#define VOICE_NUMBER_6 (6)
#define VOICE_NUMBER_7 (7)
#define VOICE_NUMBER_8 (8)
#define VOICE_NUMBER_9 (9)
#define VOICE_LETTER_A (10)
#define VOICE_LETTER_B (11)
#define VOICE_LETTER_C (12)
#define VOICE_READY (13)//准备完毕
#define VOICE_IS (14)//为
#define VOICE_ARRIVE (15)//到达
#define VOICE_UPRIGHT (16)//到达直立景点
#define VOICE_GOTO (17)//前往
#define VOICE_FIND_TREASURE (18)//发现宝物
#define VOICE_PLATFORM (19)//号平台
#define VOICE_ISIS (20)//是
#define VOICE_CLUE (21)//线索
#define VOICE_RED (22)//红灯停
#define VOICE_GREEN (23)//绿灯行
#define VOICE_YELLOW (24)//黄灯等

enum VoiceType{
    VOICE_Platform,//到达平台,参数为平台编号(int型)
    VOICE_Upright,//到达直立景点，无参数
    VOICE_Clue,//成功获取线索，参数为线索编号(char型)和线索数据(int型)
    VOICE_Treasure,//发现宝物，无参数
    VOICE_Debug,//调试，参数为调试类型(int)和颜色(Color型)
    VOICE_Platform_1,//准备完毕，无参数
};

void Voice_SendData(enum VoiceType type,...);
#endif
void Voice_SetVolume(uint8_t volume);
void Voice_SetSpeed(uint8_t speed);
void Voice_SetPowerTip(bool tip);


#endif // !__VOICE_H__